ifeq ($(TOP_DIR),)
KERNEL_DIR :=$(srctree)

EXTRA_CFLAGS += -I$(PWD)/drivers/dev_inc
EXTRA_CFLAGS += -fstack-protector-all

obj-m += drv_watchdog.o
drv_watchdog-objs := watchdog.o

else
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_inc
EXTRA_CFLAGS += -fstack-protector-all

obj-m += drv_watchdog.o
drv_watchdog-objs := watchdog.o

endif
